<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改入库信息登记')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-rkinfor-edit" th:object="${sjRkinfor}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-2 control-label is-required">甲方单位：</label>
                <div class="col-sm-4">
					<input name="customerName" th:field="*{customerName}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label is-required">入库公司：</label>
                <div class="col-sm-4">
                	<input name="rkcom" th:field="*{rkcom}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label is-required">登记时间：</label>
                <div class="col-sm-4">
                    <div class="input-group date">
                        <input name="djAt" th:value="${#dates.format(sjRkinfor.djAt, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
                <label class="col-sm-2 control-label is-required">入库类别：</label>
                <div class="col-sm-4">
                	<input name="rktype" th:field="*{rktype}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label is-required">甲方联系人：</label>
                <div class="col-sm-4">
                    <input name="lxr" th:field="*{lxr}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label is-required">入库起止时间：</label>
                <div class="col-sm-4">
                    <div class="input-group date">
                        <input name="rkStartAt" th:value="${#dates.format(sjRkinfor.rkStartAt, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label is-required">入库截止时间：</label>
                <div class="col-sm-4">
                    <div class="input-group date">
                        <input name="rkEndAt" th:value="${#dates.format(sjRkinfor.rkEndAt, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
                <label class="col-sm-2 control-label is-required">到期提醒：</label>
                <div class="col-sm-4">
                    <div class="input-group date">
                        <input name="dqAt" th:value="${#dates.format(sjRkinfor.dqAt, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label is-required">经办人：</label>
                <div class="col-sm-4">
                    <input name="jbr" th:field="*{jbr}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label is-required">经办人电话：</label>
                <div class="col-sm-4">
                    <input name="jbrAt" th:field="*{jbrAt}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label is-required">邮箱：</label>
                <div class="col-sm-4">
                    <input name="email" th:field="*{email}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label is-required">登录网址：</label>
                <div class="col-sm-4">
                    <input name="url" th:field="*{url}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label is-required">登录账户：</label>
                <div class="col-sm-4">
                    <input name="account" th:field="*{account}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label is-required">登录密码：</label>
                <div class="col-sm-4">
                    <input name="password" th:field="*{password}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label is-required">入库报价费率：</label>
                <div class="col-sm-4">
                    <input name="rkbjfl" th:field="*{rkbjfl}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label is-required">入库状态：</label>
                <div class="col-sm-4">
                    <select name="status" th:field="*{status}" class="form-control" th:with="type=${@dict.getType('sj_rkinfo_status')}" required>
		                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
		            </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">备注：</label>
                <div class="col-sm-10">
                   	<textarea name="other" class="form-control" autoComplete="off" >[[*{other}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "sj/rkinfor";
        $("#form-rkinfor-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-rkinfor-edit').serialize());
            }
        }

        $("input[name='djAt']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='rkStartAt']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='rkEndAt']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='dqAt']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

    </script>
</body>
</html>